﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SD.ContentSystem.ValueObjects.Structs
{
    /// <summary>
    /// 登录菜单树
    /// </summary>
    [DataContract]
    [Serializable]
    public struct LoginMenuInfo
    {
        /// <summary>
        /// 标识Id
        /// </summary>
        [DataMember]
        public Guid Id;

        /// <summary>
        /// 上级菜单Id
        /// </summary>
        [DataMember]
        public Guid? ParentId;

        /// <summary>
        /// 菜单名称
        /// </summary>
        [DataMember]
        public string Name;

        /// <summary>
        /// 菜单排序
        /// </summary>
        [DataMember]
        public int Sort;

        /// <summary>
        /// 菜单图标
        /// </summary>
        [DataMember]
        public string Icon;

        /// <summary>
        /// 链接
        /// </summary>
        [DataMember]
        public string Url;

        /// <summary>
        /// 子菜单集
        /// </summary>
        [DataMember]
        public IList<LoginMenuInfo> SubMenuInfos;
    }
}
